package com.planet.classes;

import java.io.Serializable;
import java.util.ArrayList;

import com.planet.classes.Event;

public class Events implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ArrayList<Event> _eventList;
	
	public Events(){
		_eventList = new ArrayList<Event>();
	}
	
	public void addEvent(Event event){
		_eventList.add(event);
	}
	
	public ArrayList<Event> getEventList(){
		return _eventList;
	}
	
	public void SetHighlights(ArrayList<Integer> highlights){
		for(int i = 0; i < _eventList.size(); i++){
			Event currentEvent = _eventList.get(i);
			for(int x = 0; x < highlights.size(); x++ ){
				if(currentEvent.get_id() == highlights.get(x)){
					currentEvent.set_isHighlight(true);
				}
			}
		}
	}
}
